import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/index',
  //   name: 'index',
  //   component: () => import('../views/index/index'),
  //   children: [{
  //     path: 'user',
  //     name: 'user',
  //     component: () => import('@/views/user/index')
  //   }]
  // },
  {
    path: '/',
    name: 'login',
    component: () => import('@/views/login/login')
  },
]




// handleRouterTree()

var router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router